package com.liuning.graduationdemo.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.liuning.graduationdemo.entity.MedicalRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 病历表 Mapper 接口
 * </p>
 *
 * @author pumpkin
 * @since 2022-06-05
 */
public interface MedicalRecordMapper extends BaseMapper<MedicalRecord> {

    Page<MedicalRecord> findPage(Page<MedicalRecord> page, @Param("patientName") String patientName, @Param("doctorName") String doctorName);

    Page<MedicalRecord> findPersonMedicalRecord(Page<MedicalRecord> page,@Param("patientId") Integer patientId);
}
